package com.yuhanginfo.modules.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yuhanginfo.common.persistence.Page;
import com.yuhanginfo.common.service.WebCrudService;
import com.yuhanginfo.modules.web.dao.WebGoodsCombDetailDao;
import com.yuhanginfo.modules.web.entity.WebGoodsCombDetail;

/**
 * 套餐详情Service
 * @author lvls
 * @version 2017-11-15
 */
@Service
@Transactional(readOnly = true)
public class WebGoodsCombDetailService extends WebCrudService<WebGoodsCombDetailDao, WebGoodsCombDetail> {

	@Autowired
	private WebGoodsCombDetailDao goodsCombDao;
	
	public WebGoodsCombDetail get(String id) {
		return super.get(id);
	}
	
	public List<WebGoodsCombDetail> findList(WebGoodsCombDetail goodsCombDetail) {
		return super.findList(goodsCombDetail);
	}
	
	public Page<WebGoodsCombDetail> findPage(Page<WebGoodsCombDetail> page, WebGoodsCombDetail goodsCombDetail) {
		return super.findPage(page, goodsCombDetail);
	}
	
	@Transactional(readOnly = false)
	public void save(WebGoodsCombDetail goodsCombDetail) {
		super.save(goodsCombDetail);
	}
	
	@Transactional(readOnly = false)
	public void delete(WebGoodsCombDetail goodsCombDetail) {
		super.delete(goodsCombDetail);
	}

	public List<WebGoodsCombDetail> selectByGoodsComboId(String id) {
		return goodsCombDao.selectByGoodsComboId(id);
	}

}